/*
 * @Description: 
 * @Author: liuzl
 * @Date: 2024-09-24 15:22:44
 * @LastEditors: liuzl
 * @LastEditTime: 2024-09-24 16:57:55
 */
/**
 * Test04Student
 */
public class Test04Student {

    public static void main(String[] args) {
        Student student1 = new Student("Student1",20);
        //Student2 student2 = student1;
        Student student2 = new Student("Student2",22);
        //比较的是对象的引用，student1和s2是分别创建的 所以引用地址不可能相同
        System.out.println("student1 == student2:"+(student1 == student2));
        System.out.println("student1.equals(student2):"+student1.equals(student2));
    }
}